package io.renren.modules.pullin.service.impl;

import io.renren.datasources.DataSourceNames;
import io.renren.datasources.annotation.DataSource;
import io.renren.modules.pullin.dao.PullInDao;
import io.renren.modules.pullin.entity.BinzhiClassCourse;
import io.renren.modules.pullin.entity.BinzhiStudentInfo;
import io.renren.modules.pullin.entity.BinzhiTeacherInfo;
import io.renren.modules.pullin.service.PullinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PullinServiceImpl implements PullinService{
    @Autowired
    PullInDao pullInDao;
    @DataSource(name = DataSourceNames.SECOND)
    public List<BinzhiClassCourse> CopyClassCourseFromOralce(){
        return pullInDao.CopyTrueClassCourseFO();
    }
    @DataSource(name = DataSourceNames.SECOND)
    public List<BinzhiStudentInfo> CopyStudentInfoFO(){return  pullInDao.CopyStudentInfoFO();}
    @DataSource(name = DataSourceNames.SECOND)
    public List<BinzhiTeacherInfo> CopyTeacherInfoFO(){return  pullInDao.CopyTeacherInfoFO();}
    public List<BinzhiClassCourse> CopyTrueClassCourseFO2(){
        return  pullInDao.CopyTrueClassCourseFO2();
    }
    public List<BinzhiStudentInfo> CopyStudentInfoFO2(){
        return pullInDao.CopyStudentInfoFO2();
    }
}
